package com.demo.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CommonCtroller {
    //路径通配符的方式
    @RequestMapping("/page/{path}")
    public String toPage(@PathVariable("path") String p){
        return p;
    }
}
